<?php
namespace app\pay\controller;
use think\Input;
use think\Controller;
class Common extends Controller{
    protected $sys;
    public function initialize(){ 
        header('Access-Control-Allow-Origin:*');
        $this->sys = cache('System'); 
        $this->assign('sys',$this->sys); 
        $paybanks = cache('paybanks');
        if(!$paybanks){
            $paybanks=db('ad')->where('type_id',12)->where('open',1)->order('sort')->select();
            cache('paybanks',$paybanks);
        }
        $this->assign('paybanks',$paybanks); 
    }
    public function _empty(){
        return $this->error('空操作，返回上次访问页面中...');
    }
}